<div class="container page-container">
	<dl class="col-group page-card-group" id="office_notice_list">
	<div class="clearfix"></div>
</div>
<script>
$(function () {
	var office_notice_api = {
		list: LOCAL + 'Test/Office/notice.json',
	}
	$.ajax({
		url : office_notice_api.list,
		type: 'post',
		dataType: 'json',  
		data: {},
			success: function(data){
			var temp = "";
			var level0 = data.children;
			for( var i=0;i<level0.length;i++){
				temp += `
					<li><dt class="text-primary lead">${level0[i].title}</dt></li><li><dd>`;
					var level1 = level0[i].children;
					for( var x=0;x<level1.length;x++){
						temp += `<a href="/office/notice/${level1[x].url}">
							${level1[x].title}`;
							if( level1[x].tips>0 ){
								temp += `<span class="label label-dot label-danger"></span>`;
							}
						temp += `</a>`;
					}
				temp += `</dd></li>`;
			}
			$('#office_notice_list').html(temp);
		}
	});
})
</script>